<template>
  <div id="app">
    <!--     <div class="box">
      <div class="left"></div>
      <div class="mid"></div>
      <div class="right"></div>
    </div>
 -->

    <!-- el-row行  el-col列  默认情况下将页面分为24列 -->
    <!--  <el-row class="box">
      <el-col :span="8"><div class="bgpink"></div></el-col>
      <el-col :span="8"><div class="bgyellow"></div></el-col>
      <el-col :span="8"><div class="bgpink"></div></el-col>
    </el-row> -->

    <!-- 有间隔的 -->
    <el-row :gutter="20">
      <el-col :span="6" ><div class="bg-yellow"></div></el-col>
      <el-col :span="6"><div class="bg-red"></div></el-col>
      <el-col :span="6"><div class="bg-yellow"></div></el-col>
      <el-col :span="6"><div class="bg-red"></div></el-col>
    </el-row>
  </div>
</template>
<script>
import HelloWorld from "./components/HelloWorld.vue";

export default {
  name: "App",
  components: {},
};
</script>

<style lang="less" scoped>
/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.box {
  display: flex;
  width: 100%;
  height: 100vh;
}
.box div{
  flex: 1;
}
.left{
  background-color: pink;
}
.mid{
  background-color: yellow;
} */
/* #app {
  .box {
    display: flex;
    width: 100%;
    height: 100vh;
    .left {
      flex: 1;
      background: skyblue;
    }
    .mid {
      flex: 1;
      background: pink;
    }
    .right {
      flex: 1;
      background: yellow;
    }
  }
}
 */
* {
  margin: 0;
  padding: 0;
}
.box {
  width: 100vw;
  height: 100vh;
}
</style>
 <style lang="less" scoped>
 .bg-yellow{
   width: 100%;
   height: 100px;
   background: yellow;
 }
 .bg-red{
   width: 100%;
   height: 100px;
   background: red;
 }
</style>
